package com.wlyuan.open.dto.transport;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author lijing
 * @description
 */
@Data
public class TransportArgumentsDTO implements Serializable {

    private static final long serialVersionUID = 5813086631134897921L;
    @ApiModelProperty("货物分类")
    @NotNull(message = "货物分类不能为空")
    @Range(message = "货物分类不存在", min = 1, max = 3)
    private Integer cargoType;

    @ApiModelProperty("运输模式")
    @NotNull(message = "运输模式(整车或零担)不能为空")
    @Range(message = "运输模式(整车或零担)不存在", min = 1, max = 2)
    private Integer transportMode;

    @ApiModelProperty("计费模式")
    @Range(message = "计费模式不存在", min = 1, max = 3)
    private Integer billingMode;

    @ApiModelProperty("计价单位")
    @Range(message = "计价单位不存在", min = 1, max = 17)
    private Integer billingUnit;

    @ApiModelProperty("是否报价")
    @NotNull(message = "是否报价不能为空")
    @Range(message = "是否报价不存在", min = 0, max = 1)
    private Integer insure;

    @ApiModelProperty("是否提货")
    @Range(message = "是否提货不存在", min = 0, max = 1)
    private Integer pick;

    @ApiModelProperty("是否送货")
    @Range(message = "是否送货不存在", min = 0, max = 1)
    private Integer deliver;

    @ApiModelProperty("是否装货")
    @Range(message = "是否装货不存在", min = 0, max = 1)
    private Integer load;

    @ApiModelProperty("是否卸货")
    @Range(message = "是否卸货不存在", min = 0, max = 1)
    private Integer unload;

    @ApiModelProperty("包装方式")
    @NotNull(message = "包装方式不能为空")
    @Range(message = "包装方式不存在", min = 1, max = 3)
    private Integer packageMode;

    @ApiModelProperty(value = "运输方式 市内/长途", hidden = true)
    private Integer distanceType;
}
